<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $title ?></title>
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.7.1.js') ?>"></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/lightbox/js/lightbox.js') ?>"></script>
	<link href="<?php echo base_url('assets/css/style.css') ?>" type="text/css" rel="stylesheet" />
	<link href="<?php echo base_url('assets/js/lightbox/css/lightbox.css') ?>" type="text/css" rel="stylesheet" />
	<script type="text/javascript">
	var baseurl = '<?php echo base_url() ?>';
	</script>
</head>
<body>

<?php if ($this->session->userdata('session_loggedin')) { ?>
<div class="header">
	<p class="headerMenu">
		<?php echo anchor('welcome', 'Home') ?> |
		<?php echo anchor('photo', 'Gallery') ?> |
		<?php echo anchor('phonebook', 'Phone Book') ?> |
		<?php echo anchor('user/logout/'.$this->core->encode($this->uri->uri_string()), 'Logout') ?>
	</p>
</div>
<?php } ?>

<?php echo $this->load->view($content) ?>

<?php if ($this->session->userdata('session_loggedin')) { ?>
<div class="footer">
	<p>Copyright &copy; <?php echo date('Y') ?>. All rights reserved.</p>
</div>
<?php } ?>

</body>
</html>